package com.example.frn.service;


import com.example.frn.dto.UserModifyPasswdDto;
import com.example.frn.entity.User;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface UserService {
    User login(String username,String passwd);
    boolean save(User user);
    boolean updateById(User user);
    boolean removeById(Integer id);
    boolean modifyPasswd(UserModifyPasswdDto user);
    boolean modifyNoSpeak(User user);
    User getById(Integer id);
    PageInfo<User> page(Integer pageNum,Integer pageSize,String username,String nickName);

}
